package com.situ.b2c.product.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.b2c.pojo.Product;
import com.situ.b2c.product.dao.ProductDao;
import com.situ.b2c.product.service.ProductService;
import com.situ.b2c.util.MyBatisUtil;

@Service
public class ProductServiceImpl implements ProductService{
	@Autowired
	private ProductDao productDao;
	
	@Override
	public int insert(Product product) {
		
		return productDao.insert(product);
	}
	
	@Override
	public List<Product> selectAllProduct(){
		
		return productDao.selectAll();
	}
	@Override
	public List<Product> selectBySearch(Product searchProduct){
		
		return productDao.selectBySearch(searchProduct);
		
		
		
	}
	
}
